<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="frame/jquery-3.5.1/jquery-3.5.1.min.js"></script>
</head>
<body>
<button id="btn_next">进入下一个</button>
<script>
    jQuery(function () {
        jQuery("#btn_next").click(function () {
            //

            let user = {"userNo":123,"userName":"James"};
            //利用浏览器的本地存储，
            // sessionStorage:会话级别，浏览器关闭则丢失
            // localStorage:本地存储，只要不删，当前浏览器永远存在
            //都是以键值对的方式存放字符串
            let str = JSON.stringify(user);
            sessionStorage.setItem("info",str);
            location.href = "main.html";
        });
    });
</script>
</body>
</html>